package com.mapaower.payment.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Date;

@FeignClient(name = "user-service")
public interface UserServiceFeignClient {

    @PostMapping("/api/users/update-membership-expiry")
    void updateMembershipExpiry(
            @RequestParam("userId") Long userId,
            @RequestParam("startDate") Date startDate,
            @RequestParam("endDate") Date endDate);
}